import java.util.Scanner;
public class Text {
    public static int max(int a,int b)//整数中最大值
    {
        return a>b?a:b;
    }
    public static double max2(double a,double b)//小数中最大值
    {
        return a>b?a:b;
    }
    public static double max3(double a,double b,double c){
        return max2(a,b) > c ? max2(a,b):c;
    }

    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.print("请输入第一个整数：");
        int a1=sc.nextInt();
        System.out.print("请输入第二个整数：");
        int a2=sc.nextInt();
        System.out.print("请输入第一个小数：");
        double b1=sc.nextDouble();
        System.out.print("请输入第二个小数：");
        double b2=sc.nextDouble();
        System.out.print("请输入第三个小数：");
        double b3=sc.nextDouble();
        System.out.println("整数中最大值："+max(a1,a2));
        System.out.println("小数中最大值："+max3(b1,b2,b3));

    }

    public static void main6(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请您输入一个数字：");
        int n = sc.nextInt();
        int x1 = 1;
        int x2 = 1;
        int x3 = 1;
        for(int i = 1;i<=3;i++){
            x3 = x1+x2;
            x1 = x2;
            x2 = x3;
        }
        System.out.println("斐波那契数列第"+n+"项为:"+x3);
    }
    /*public static int max1(int num1, int num2) {
        return num1 >= num2 ? num1 : num2;

    }
    public static  int max2(int num1, int num2,int num3){
        return max1(max1(num1, num2),num3);
    }*/

    public static void main5(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n1 = scanner.nextInt();
        int n2 = scanner.nextInt();
        int n3 =scanner.nextInt();
        //int ret = max2(n1,n2,n3);
        //System.out.println(ret);
    }
    public static void main4(String[] args) {
        String password = "123456";
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入密码：");
        int n = 3;

        //3次
        for (int i = 0; i < 3; i++) {
            String input = scanner.nextLine();
            if (input.equals(password)) {
                System.out.println("输入正确！");
                break;
            }
            else {
                n--;
                System.out.println("输入错误，请重新输入,还有" + n + "次机会");
            }
        }
        //输入错误三次
        if (n == 0) {
            System.out.println("输入次数用完，退出程序");
        }
    }
    public static void main3(String[] args) {
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        while(x > 0){
            System.out.print(x % 10 + " ");
            x /= 10;
        }
    }

    public static void main2(String[] args) {
        double number = 0;
        for(int i = 1;i <= 100;i++){
            if(i % 2 != 0){
                number += (double) 1 / i;
            }else{
                number -= (double) 1 / i;
            }
        }
        System.out.println("值为："+number);
    }
    public static void main1(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int a = in.nextInt();
            for(int i = 1;i <= a;i++){
                for(int j = 1;j <= a;j++){
                    if(i == j||(i + j) == (a+1)){
                        System.out.print("*");
                    }else{
                        System.out.print(" ");
                    }
                }
                System.out.println(" ");
            }
        }
    }
}
